import Vue from 'vue';
import Vuex from 'vuex';

import mutations from './mutations';
import actions from  './actions';
import getters from  './getters';
import A from './mudules/modulesA';

//安装插件
Vue.use(Vuex);
//创建对象
const store = new Vuex.Store({
  state:{
      info:{name:"aaa",}
  },
  mutations,
  actions,
  getters,
  modules:{
     a:A
  }
});
//导出store对象
export default store;




